<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            /* 3d效果一定要用透视 */
            perspective: 200px;
        }
        img{
            display: block;
            width: 200px;
            height: 200px;
            margin: 100px auto;
            transition: all 1s;
        }
        img:hover{
            /* transform: rotate(x,y,z,deg); */
            /* transform: rotate3d(1,0,0,45deg); */
            transform: rotate3d(1,1,0,45deg);
            /* transform: rotate3d(0,1,1,45deg); */
        }
    </style>
</head>
<body>
    <img src="../基础语法/images/img.jpg" alt="">
</body>
</html>